import request from '@/utils/request'
// 登录
export const reqLogin = (obj) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data: obj
  })
}
// 获取用户基本资料
export const reqGetInfo = () => {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
/** 获取用户基本信息
 *  */
export const reqGetUserId = (id) => {
  return request({
    url: `/sys/user/${id}`,
    method: 'get'
  })
}
/**
 * 获取员工简单列表
 */
export const reqGetSimpleUserList = () => {
  return request({
    method: 'get',
    url: '/sys/user/simple'
  })
}
